package cn.tq.pethome.logininfo.controller;

import cn.tq.pethome.logininfo.domain.Logininfo;
import cn.tq.pethome.logininfo.service.ILogininfoService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@RestController
@RequestMapping("/info")
@Api(value = "登录用户的API",description="登录用户相关的CRUD功能")
public class LogininfoController {
    
    @Autowired
    private ILogininfoService logininfoService;

    /**
     * 查询所有数据
     * @return
     */
    @GetMapping
    @ApiOperation(value = "查询所有数据" )
    public List<Logininfo> logininfos() {
        return logininfoService.findAll();
    }


}
